//
//  YAYIPerformanceLineChart.h
//  YAYIDoctor
//
//  Created by Veer on 16/5/10.
//  Copyright © 2016年 hxp. All rights reserved.
//

#import <UIKit/UIKit.h>

#define lineOrangeColor YAYIColor(239, 157, 116)
#define lineBlueColor YAYIColor(131, 203, 148)




@interface YAYIPerformanceModel : NSObject

@property (nonatomic, assign) NSInteger starttime;
@property (nonatomic, assign) NSInteger servieNum;
@property (nonatomic, assign) CGFloat totalprice;
@property (nonatomic, assign) NSInteger timelong;
@property (nonatomic, copy) NSString *workday;

-(void)setValue:(id)value forUndefinedKey:(NSString *)key;

@end




@interface YAYIPerformanceLineChart : UIView

typedef enum : NSUInteger {
    DataTypePerformance,
    DataTypeServiceCount,
} DataType;


typedef enum : NSUInteger {
    ChartTypeToday,
    ChartTypeThisMonth,
    ChartTypeThisYear,
} ChartType;


@property (nonatomic, strong) NSArray *xArray;
@property (nonatomic, strong) NSMutableArray *dataArray;

@property (nonatomic, assign) DataType dataType;
@property (nonatomic, assign) ChartType chartType;

@end
